        var search = document.getElementsByClassName('search')[0];
        var oInput =search.getElementsByTagName('input')[0];
        

        
        oInput.oninput=function(){
            var val = oInput.value;
            if(val==''){
                oUl.innerHTML ='';
                return;
            }
            var oScript = document.createElement("script");
            oScript.src = 'https://www.epet.com/share/suggest.html?inajax=1&kw='+val+'&pet_type=dog';
            document.body.appendChild(oScript);

        }
        function jsonp769(data1){
            // console.log(data1);
            var str = '';
            if(data1.result){
                for(var i = 0;i<data1.result.length;i++){
                    str +=`<p><a href="https://list.epet.com/search/main.html?keyword=${data1.result[i][0]}&pet_type=dog&version=2.0.0&attrid=">${data1.result[i][0]}</a></p>`;
                }
            }
            oUl.innerHTML = str;
        }